#include <iostream>
using namespace std;

int main()
{
	int max = 0;
	int n;
	while(cin >> n)
	{
		if(n > max)
			max = n;
	}
	cout << max << endl;
	return 0;
}
